			<div class="post">
				<h2 class="title">
                            <?php
                            $allItems = $this->allItems;
                            $currentPage = $this->currentPage;

                            $item = $this->item;
                            if ($item) {
                                $itemTitle = " >> " . $item['item_title'];
                            }

                            if ($currentPage) {
                                // check exists parent
                                if ($currentPage['all_parent']) {
                                    $allParent = explode(',', $currentPage['all_parent']);
                                    if (isset($allParent[0])) {
                                        $allCategory = $this->allCategory;
                                        foreach($allParent as $parentID):
                                            $parent = $allCategory[$parentID];
                                            // check to ignore root
                                            if ($parent['left'] != 1) {
                                            ?>
                                                <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >>
                                            <?php
                                            }
                                        endforeach;
                                    }
                                    ?>
                                    <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $currentPage['category_id']?>"><?php echo $currentPage['admin_title'] ;?></a>
                                    <?php

                                    echo $itemTitle;
                                }
                            }
                            ?>
                </h2>
                <div class="story">
<?php



if ($item) {
?>
                                    <?php
                                    if ($item['item_image']) {
                                    $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                    $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                    ?>
                                    <img src="<?=ImageUtil::getImage($path,$fileName,200,200, 100,true)?>" class="border" align="left" style="margin:5px 10px;"></img>
                                    <?php
                                    }
                                    ?>

                                        <p><?php echo $item['item_short_description'];?></p>
                                        <p><?php echo $item['item_description'];?></p>
                                    <div style="clear:both;"></div>
<?php
} // if has item
?>
    </div>
    
</div>